package com.example.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wlg
 * @create_time 2021-09-15 上午 8:56
 * @function
 */
@Component
@FeignClient(value = "service-order",fallback = OrderClientImpl.class)
public interface OrdersClient {

    //根据课程id和用户id（电话）查询订单表中订单状态
    @GetMapping("/eduorder/order/isBuyCourse/{courseId}/{memberId}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId);

}
